<?php

namespace app\modules\lenders\models;

use Yii;

/**
 * This is the model class for table "rah_bank".
 *
 * @property integer $bankID
 * @property string $bankName
 * @property string $bankUserName
 * @property string $branchBankName
 * @property string $cardID
 * @property string $tableName
 * @property integer $tablePK
 * @property string $province
 * @property string $city
 * @property string $county
 */
class Bank extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'rah_bank';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['tablePK'], 'integer'],
            [['bankName'], 'string', 'max' => 100],
            [['bankUserName', 'tableName'], 'string', 'max' => 50],
            [['branchBankName'], 'string', 'max' => 200],
            [['cardID'], 'string', 'max' => 30],
            [['province', 'city', 'county'], 'string', 'max' => 45],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'bankID' => 'Bank ID',
            'bankName' => 'Bank Name',
            'bankUserName' => 'Bank User Name',
            'branchBankName' => 'Branch Bank Name',
            'cardID' => 'Card ID',
            'tableName' => 'Table Name',
            'tablePK' => 'Table Pk',
            'province' => 'Province',
            'city' => 'City',
            'county' => 'County',
        ];
    }
}
